<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>{$seo.seo_title}</title>
<meta name="keywords" content="{$seo.seo_keys}" />
<meta name="description" content="{$seo.seo_desc}" />
<load href="__TMPL__public/css/style.css" />
<script type="text/javascript">
var def={$def};
</script> 
<load href="__ROOT__/statics/js/jquery/jquery-1.4.2.min.js" />
<load href="__ROOT__/statics/js/jquery/plugins/jquery.masonry.js" />
<load href="__ROOT__/statics/js/jquery/plugins/jquery.infinitescroll.js" />
<load href="__ROOT__/statics/js/jquery/plugins/jquery.cookie.js" />
<load href="__ROOT__/statics/js/artDialog5.0/skins/mogujie.css" />
<load href="__ROOT__/statics/js/artDialog5.0/source/artDialog.js" />
<load href="__ROOT__/statics/js/artDialog5.0/artDialog.plugins.min.js" />
<load href="__TMPL__public/js/loadjs.js" />
<!--[if IE]>
<load href="__TMPL__public/css/ie.css" />
<![endif]-->
<!--[if lte IE 8]>
<load href="__ROOT__/statics/js/jquery/plugins/jquery.corner.js" />
<script type="text/javascript">
$(function(){ 
	$('.jq_corner').corner();
});
</script>
<![endif]-->
</head>
<body>
<div class="head">
	<div class="header">
		<h1> 	
			<a title="{$site_name}" href="{$site_domain}"> 
            	<img id="logoimg" alt="{$site_name}" src="__ROOT__/{$site_logo}" style="max-height:90px;"> 
         	</a> 
        </h1>
		<div id="search">			
			<!--
			<form method="post" action="{:u('bsearch/index')}" onsubmit="return check_search(this);">
			-->			
			<form method="get" action="index.php" name="searchForm" target="_blank">	
				<div class="slt">
					<span>
						<if condition="MODULE_NAME eq 'search'">
							<a id="ish_1" onclick="SearchSelect(1,'300家B2C网站商城商品，轻松搜索，一键分享！','bsearch');">分享宝贝</a>				
							<a id="ish_2" onclick="SearchSelect(2,'衣服，包包等热门分享内容，轻松查找！','search');" class="on">找商品</a>
							<a id="ish_3" onclick="SearchSelect(3,'千万淘宝数据一键查找','tsearch');">查淘宝</a>
						<elseif condition="MODULE_NAME eq 'rebate'"/>						
							<a id="ish_1" onclick="SearchSelect(1,'300家B2C网站商城商品，轻松搜索，一键分享！','bsearch');">分享宝贝</a>				
							<a id="ish_2" onclick="SearchSelect(2,'衣服，包包等热门分享内容，轻松查找！','search');">找商品</a>
							<a id="ish_3" onclick="SearchSelect(3,'千万淘宝数据一键查找','tsearch');" class="on">查淘宝</a>					
						<else />
							<a id="ish_1" onclick="SearchSelect(1,'300家B2C网站商城商品，轻松搜索，一键分享！','bsearch');" class="on">分享宝贝</a>				
							<a id="ish_2" onclick="SearchSelect(2,'衣服，包包等热门分享内容，轻松查找！','search');">找商品</a>
							<a id="ish_3" onclick="SearchSelect(3,'千万淘宝数据一键查找','tsearch');">查淘宝</a>	
						</if>
					</span>
				</div>
				<if condition="MODULE_NAME eq 'search'">
					<input id="m" type="hidden" name="m" value="search"/>
				<else />
					<input id="m" type="hidden" name="m" value="bsearch"/>
				</if>
				
				<input id="a" type="hidden" name="a" value="index"/>
				<div class="input_submit">
					<input type="text" value="<if condition="$keywords neq ''">{$keywords}<else/>300家B2C网站商城商品，轻松搜索，一键分享！</if>" autocomplete="off" name="keywords" id="search_hd" />			

					<button type="submit" class="search" title="搜索" onclick="return checkSearch();">搜 索</button>
				</div>
			</form>		
		</div>
		<div class="login_top">			
				<present name="user">			
					<ul>
						<li class="l1">							
							<div class="user_relation">	
								<p>
									<span class="l">{$user.name}</span>
									<span class="r"> </span>
								</p>							
								<ul style="display:none;">
									<li><a href="{:u('uc/like')}">我的主页</a></li>
									<li><a href="{:u('uc/account_face')}">头像设置</a></li>
									<li><a href="{:u('uc/account_basic')}">账号设置</a></li>
									<if condition="$is_cashback eq 1">
										<li><a href="{:u('uc/account_commission')}">返利管理</a></li>
									</if>
									<li><a href="{:u('uc/account_message')}">短消息</a></li>
								</ul>
							</div>
						</li>
						<li>
							<div id="share_goods" class="left top_share">
								<div class="button"><a href="javascript:void(0)">分享宝贝</a></div>
							</div>
						</li>
						<li><a href="{:u('uc/account_get_cash')}">提现 </a></li>
						<li class="last"><a href="{:u('uc/logout')}">退出</a></li>
					</ul>
				 <else />	
					<ul>	
						<li><a href="{:u('uc/tao_login')}"><img src="__TMPL__/public/images/taobao.png" /></a></li>
						<li><a href="{:u('uc/sina_login')}"><img src="__TMPL__/public/images/sina.png" /></a></li>				
						<li><a href="{:u('uc/qq_login')}"><img src="__TMPL__/public/images/qq.png" /></a></li>
						<li><a href="{:u('uc/login')}">登录</a></li>
						<li class="last"><a href="{:u('uc/register')}">注册</a></li>
					</ul>				
				 </present>  
			 
		</div>
    </div>
</div>
<div class="nav">
	<div class="naver">
    	<ul>        
         	 <li style="border-left:none;" class="dangqian"><a href="{$site_domain}" <if condition="MODULE_NAME eq 'index'"> class="hover"</if>>首 页</a></li>
             <volist name="nav_list['main']" id="val">
                <li>
					<if condition="$val['system'] eq 1">	<!--系统默认导航-->										
	                   	 <a href="{:u(''.$val['alias'].'/index')}" title="{$val.name}" <if condition="MODULE_NAME eq $val['alias']"> class="hover"</if>>
							 
					<else/>	
						<if condition="$val['in_site'] eq '0'">   <!--站外链接-->
		                    <a href="{$val.url}" title="{$val.name}" target="_blank" <if condition="$val['system'] eq 0"> class="f12 fnormal"</if>>
						<else/>
							<a href="{:u('cate/index', array('cid'=>$val['items_cate_id']))}" title="{$val.name}" <if condition="(MODULE_NAME eq 'cate') AND ($val['items_cate_id'] eq $select_pid)"> class="hover"</if>>
	                    </if>							
					</if>	
                    {$val.name}</a>
                </li>
            </volist>
        </ul>
    </div>
</div>
<script type="text/javascript">
$(function(){
	$("#search_hd").focus(function(){	
		if($(this).val()=='300家B2C网站商城商品，轻松搜索，一键分享！' || $(this).val()=='衣服，包包等热门分享内容，轻松查找！' || $(this).val()=='千万淘宝数据一键查找'){
			$(this).val('');
		}
		else{
			$(this).val();
		}		
	}).blur(function(){
		if($(this).val()=='300家B2C网站商城商品，轻松搜索，一键分享！' || $(this).val()=='衣服，包包等热门分享内容，轻松查找！' || $(this).val()=='千万淘宝数据一键查找'){
			$(this).val('');
		}
		else{
			$(this).val();
		}
	});
});
function checkSearch(){
	var fm = document.searchForm;	
	if (fm.keywords.value == '300家B2C网站商城商品，轻松搜索，一键分享！' || fm.keywords.value=='衣服，包包等热门分享内容，轻松查找！'  || fm.keywords.value=='千万淘宝数据一键查找') {
		fm.keywords.value='';
		fm.keywords.focus();
		return false;
	}
	else if(fm.keywords.value ==''){
		fm.keywords.value='';
		fm.keywords.focus();
		return false;
	}
}
function SearchSelect(n,val,m){	
	var fm = document.searchForm;	
	if (fm.keywords.value == '300家B2C网站商城商品，轻松搜索，一键分享！' || fm.keywords.value=='衣服，包包等热门分享内容，轻松查找！' || fm.keywords.value=='千万淘宝数据一键查找') {
		$id('search_hd').value = val;
	}
	$id('m').value = m;
	for(var i=1;i<4;i++){
		$id('ish_' + i).className = '';
	}
	$id('ish_' + n).className = 'on';
}
function $id(val){
	return document.getElementById(val);
}

</script>
<div class="wrapper clearfix">